package com.westa.smallshop.data.source;


import com.westa.smallshop.data.HttpError;
import com.westa.smallshop.data.source.remote.BaseDataSource;

import java.util.List;

/**
 * Created by Dune on 16/8/14.
 */
public interface ImageSource extends BaseDataSource<String> {


    interface SaveListCallBack<T> {

        void onSaveSuccessful(List<T> data);


        void onSaveDataFailed(HttpError httpError);
    }

    void upLoadImage(String image, final LoadCallBack<String> loadCallBack);

    void upLoadImages(List<String> Images, final LoadCallBack<List<String>> listLoadCallBack);
}
